import {logOut} from "@/store/modules/login";
import {clearAuthMenu} from "@/store/modules/menu";
import {closeMultipleTab} from "@/store/modules/tabs";

export const useLogOut = () => {
    window.$dispatch(logOut({}))
    window.$dispatch(clearAuthMenu({}))
    window.$dispatch(closeMultipleTab({}))
    window.$navigate('/login', {replace: true})
}
